home *** CD-ROM | disk | FTP | other *** search
- /** Copyright (c) 1993 Mentat Inc.
- ** strlog.h 4.3, last change 15 Apr 1994
- **/
-
- #ifndef _STRLOG_
- #define _STRLOG_
-
- #ifndef __OPENTRANSPORT__
- #include <OpenTransport.h>
- #endif
-
- #if PRAGMA_ALIGN_SUPPORTED
- #pragma options align=mac68k
- #endif
-
- struct log_ctl {
- short mid;
- short sid;
- char level;
- short flags;
- long ltime;
- long ttime;
- int seq_no;
- };
-
- #define SL_FATAL 0x1 /* Fatal error */
- #define SL_NOTIFY 0x2 /* Notify the system administrator */
- #define SL_ERROR 0x4 /* Pass message to error logger */
- #define SL_TRACE 0x8 /* Pass message to tracer */
- #define SL_CONSOLE 0x10 /* Print the message on the console */
- #define SL_WARN 0x20 /* Warning */
- #define SL_NOTE 0x40 /* Notice this message */
-
- struct trace_ids {
- short ti_mid;
- short ti_sid;
- char ti_level;
- };
-
- #ifndef MIOC_CMD
- #include <miioccom.h>
- #endif /* MIOC_CMD */
-
- #define I_TRCLOG MIOC_CMD(MIOC_STRLOG, 1)
- #define I_ERRLOG MIOC_CMD(MIOC_STRLOG, 2)
-
- #define LOGMSGSZ 128
-
- #ifdef __cplusplus
- extern "C" {
- #endif
-
- extern int strlog( int mid, int sid, int level, unsigned int flags, char* fmt, ...);
-
- #ifdef __cplusplus
- }
- #endif
-
- #if PRAGMA_ALIGN_SUPPORTED
- #pragma options align=reset
- #endif
-
- #endif /* _STRLOG_ */
-